{
<?php if($stat == 'ok'): ?>
"book": {
<?php include_partial('info', array('book' => $book)); ?>
},
<?php else: ?>
"code": "<?php echo $error_code ?>",
"message": "<?php echo $error_msg ?>",
<?php endif; ?>
"stat": "<?php echo $stat ?>"
}